<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>



<div id="div" style="border:solid;"></div>
<script>
var div = document.getElementsByTagName("div")[0];
alert(div.style.width); 					// 返回空字符串
</script>



</body>
</html> 
